package com.nameless.feign;

import com.nameless.entity.Coupon;
import com.nameless.entity.CouponType;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @author keluoyisi
 * @program: car-parent
 * @description: 优惠券
 * @date 2023-03-09 18:05:00
 */
@FeignClient(value = "car-coupon")
public interface CouponFeign {

    @GetMapping("/coupon/web/typeCouponType/{id}")
    CouponType typeCouponType(@PathVariable Integer id);
    @GetMapping("/coupon/web/findByCarId/{carId}")
    List<Coupon> findByCarId(@PathVariable Integer carId);
}
